
import { useSearchParams } from 'react-router-dom';

export function useSearch() {

    const [searchParams] = useSearchParams();

    /** 客户id */
    const customerId = searchParams.get('customerId');

    return {
        /** 客户id */
        customerId,
    }
}